home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Stiletto Sources / BuildScripts / BuildStiletto next >
Encoding:
Text File  |  1995-07-05  |  2.7 KB  |  124 lines  |  [TEXT/MPS ]

  1. ##################################################################################################
  2. ##                                                                                                ##
  3. ##    Program Name:    Stiletto                                                                    ##
  4. ##                                                                                                ##
  5. ##    File Name:        BuildStiletto                                                                ##
  6. ##                                                                                                ##
  7. ##    © Apple Computer, Inc. 1992-1995                                                            ##
  8. ##    All Rights Reserved                                                                            ##
  9. ##                                                                                                ##
  10. ##    Revision History:                                                                            ##
  11. ##                                                                                                ##
  12. ##        Date        Who                    Modification                                            ##
  13. ##                                                                                                ##
  14. ##        1992-10-26    Chris Halim            Original version                                        ##
  15. ##        1995-06-26    Jaakko Railo        Version 2.0                                                ##
  16. ##                                                                                                ##
  17. ##################################################################################################
  18.  
  19.  
  20. Set BuildStiletto 0
  21. Set BuildModules 0
  22.  
  23. #    Collect the script parameters.
  24.  
  25. Loop
  26.     Break if {#} == 0
  27.     If "{1}" =~ /-app/
  28.         Set BuildStiletto 1
  29.         shift 1
  30.         continue
  31.     Else If "{1}" =~ /-modules/
  32.         Set BuildModules 1
  33.         shift 1
  34.         continue
  35.     Else If "{1}" =~ /-e/
  36.         Set MakeOption "-e"
  37.         shift 1
  38.         continue
  39.     Else
  40.         Echo "### {0} - ∂"{1}∂" is not an option." > Dev:StdErr
  41.         Echo "# Usage - {0} [-app] [-modules] [-e]" > Dev:StdErr
  42.         Exit 1
  43.     End
  44. End
  45.  
  46.  
  47. if (({BuildStiletto} == 0) && ({BuildModules} == 0))
  48.     Set BuildStiletto 1
  49.     Set BuildModules 1
  50. End
  51.  
  52.  
  53.  
  54. Execute StilettoVars
  55. Execute VersionScript
  56.  
  57. if Not `Exists "{TARGET68KDir}"` 
  58.     NewFolder "{TARGET68KDir}"
  59. end
  60.  
  61. if Not `Exists "{TARGETPPCDir}"` 
  62.     NewFolder "{TARGETPPCDir}"
  63. end
  64.  
  65. if Not `Exists "{Modules68KDir}"` 
  66.     NewFolder "{Modules68KDir}"
  67. end
  68.  
  69. if Not `Exists "{ModulesPPCDir}"` 
  70.     NewFolder "{ModulesPPCDir}"
  71. end
  72.  
  73. if Not `Exists "{TEMPDir}"` 
  74.     NewFolder "{TEMPDir}"
  75. end
  76.  
  77. if Not `Exists "{OBJECTS68KDir}"` 
  78.     NewFolder "{OBJECTS68KDir}"
  79. end
  80.  
  81. if Not `Exists "{OBJECTSPPCDir}"` 
  82.     NewFolder "{OBJECTSPPCDir}"
  83. end
  84.  
  85. Set savedDir `Directory`
  86.  
  87.  
  88. #### Build Stiletto ####
  89.  
  90. if ({BuildStiletto})
  91.     Directory "{StilettoDir}"
  92.     BuildProgram "Stiletto" {MakeOption}    ∂
  93.         -d OBJECTS68KDir="{OBJECTS68KDir}"    ∂
  94.         -d OBJECTSPPCDir="{OBJECTSPPCDir}"    ∂
  95.         -d SYMOptions=off                    ∂
  96.         -d DEBUGOptions="{DEBUGOptions}"    ∂
  97.         -d TARGET68KDir="{TARGET68KDir}"    ∂
  98.         -d TARGETPPCDir="{TARGETPPCDir}"    ∂
  99.         -d SCRIPTSDir="{ScriptsDir}"        ∂
  100.         -d REZDir="{REZDir}"                ∂
  101.         -d OTHEROptions=""
  102. End
  103.  
  104.  
  105. #### Build Modules ####
  106.  
  107. if ({BuildModules})
  108.     Directory "{ModuleSourcesDir}"
  109.     BuildProgram "Modules" {MakeOption}        ∂
  110.         -d Objects68KDir="{OBJECTS68KDir}"    ∂
  111.         -d OBJECTSPPCDir="{OBJECTSPPCDir}"    ∂
  112.         -d SYMOptions=off                    ∂
  113.         -d DEBUGOptions="{DEBUGOptions}"    ∂
  114.         -d TARGET68KDir="{TARGET68KDir}"    ∂
  115.         -d TARGETPPCDir="{TARGETPPCDir}"    ∂
  116.         -d SCRIPTSDir="{ScriptsDir}"        ∂
  117.         -d REZDir="{REZDir}"                ∂
  118.         -d OTHEROptions=""
  119. End
  120.  
  121.  
  122. ####
  123.  
  124. Directory "{savedDir}"